home *** CD-ROM | disk | FTP | other *** search
/ Windows Undocumented File Formats / Windows Undocumented File Formats.img / CHAP6 / MAKEFILE.BOR < prev    next >
Text File  |  1997-07-21  |  927b  |  33 lines

  1. ############################################################
  2. #
  3. # Makefile for comp.c and decomp.c using the Borland compiler/linker
  4. # Chap. 6, Undocumented Windows File Formats, published by
  5. # R&D Books, an imprint of Miller Freeman, Inc.
  6. #
  7. # Copyright 1997, Mike Wallace and Pete Davis
  8. #
  9. # Variable requirements:
  10. #
  11. #   1) 'bcc' must be in your path
  12. #   2) Change the -I argument to the
  13. #      'include' subdirectory for your compiler
  14. #   3) Change the -L argument to the
  15. #      'lib' subdirectory for your compiler
  16. #
  17. # Compile the program with:  make -fmakefile.bor
  18. #
  19. ############################################################
  20.  
  21. PROG1   = COMP
  22. PROG2   = DECOMP
  23. HEADERS = DECOMP.H
  24.  
  25. all: $(PROG1).EXE $(PROG2).EXE
  26.  
  27. $(PROG1).EXE:    $(PROG1).C $(HEADERS)
  28.         bcc -mm -Id:\bc45\include -Ld:\bc45\lib $(PROG1).C
  29.  
  30. $(PROG2).EXE:    $(PROG2).C $(HEADERS)
  31.         bcc -mm -Id:\bc45\include -Ld:\bc45\lib $(PROG2).C
  32.  
  33.